import java.awt.*;

public class Gold extends Object {

    Gold(){
        this.x = (int)(Math.random()*700);//金块初始值
        this.y = (int)(Math.random()*550+300);//保证金块位置不同
        this.width = 52;
        this.height = 52;
        this.m = 70;
        this.flag = false;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold1.gif");
    }
}

